package cn.starlightsoftware.sherly.controller.admin.permission.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author 谷子毅
 */
@Data
public class PermissionSimpleRespVO {

    @Schema(description = "权限编号")
    private String permissionId;

    @Schema(description = "父权限编号")
    @JsonIgnore
    private String parentId;

    @Schema(description = "权限名称")
    private String permissionName;

    @Schema(description = "排序")
    @JsonIgnore
    private Integer sort;

    @Schema(description = "子权限")
    private List<PermissionSimpleRespVO> children;

}
